//
//  ResourceItemModel.h
//  YJC
//
//  Created by IOS3 on 2019/1/14.
//  Copyright © 2019 ZJP. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SODownloadItem.h"

NS_ASSUME_NONNULL_BEGIN


typedef NS_ENUM(NSUInteger, ResourceItemType) {
    /// 图片资源
    ResourceItemTypePic,
    /// 视频资源
    ResourceItemTypeVideo,
    /// 音频资源
    ResourceItemTypeAudio,
    /// 案例资源(html)
    ResourceItemTypeDemo,
    /// 习题资源(html)
    ResourceItemTypeTest,
    /// 未知
    ResourceItemTypeNone,
};


@interface ResourceItemModel : NSObject <SODownloadItem>

@property (nonatomic, copy) NSString *r_id;
@property (nonatomic, copy) NSString *r_name;
@property (nonatomic, copy) NSString *ext;
@property (nonatomic, copy) NSString *show_num;
@property (nonatomic, copy) NSString *fileType;
@property (nonatomic, copy) NSString *chapter_id;
@property (nonatomic, copy) NSString *section_id;
@property (nonatomic, copy) NSString *downloadPath;
@property (nonatomic, copy) NSString *picOption;


/// 资源类型
- (ResourceItemType)getResouceItemType;


/// 保存地址
- (NSString *)savePath;

@end



NS_ASSUME_NONNULL_END
